{% extends "journal/base.html" %}

{% block main %}
<section>
    <h1>登录</h1>
    <form method="post">
        {% csrf_token %}
        {{ form.as_table }}
        <label>
            <input type="checkbox" name="remember_me"> 记住密码
        </label>
        <input type="hidden" name="next" value="{{ next }}">
        <button type="submit">登录</button>
    </form>
    <div class="card-footer text-center">
        <p class="mb-0">
            还没有账号？ <a href="{% url 'register' %}">立即注册</a>
        </p>
    </div>
</section>
{% endblock %} 